﻿using BaoShouTangServer.ApiServies;
using BaoShouTangServer.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using U8Login;

namespace BaoShouTangServer.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            string resp = "";
            string msg = "";
            clsLogin c = LogInService.GetLogin(ref resp, ref msg);
            //PU_ArrivalVouchService.审核到货单审核(c, 1000009556,ref msg);
            ViewData["resp"] = resp;
            ViewData["msg"] = msg;


            //生产表model [View_生产订单产品子件] CurrentStock
            List<string> dbName = new List<string>();
            //dbName.Add("View_生产订单产品子件");
            //dbName.Add("CurrentStock");
            //dbName.Add("View_可用量");
            dbName.Add("SaleOrderQ");
            //dbName.Add("PO_Podetails");
            //dbName.Add("PU_ArrivalVouch");
            //dbName.Add("PU_ArrivalVouchs");
            dbName.Add("SaleOrderSQ");

            //SqlSugarHelp.scope.DbFirst.Where(dbName.ToArray()).IsCreateAttribute().CreateClassFile(@"D:\bai\特种仪表代码\U8接口\SmartMesServerV1\Models\", "BaoShouTangServer.Models");
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}